package jichen;

/*
老师姓名，年龄，教龄和性别属性，都有自我介绍(selfIntroduce)和上课(giveLession)的方法。
 */
public class Teacher {
    private String name;
    private int age;
    private String teachdate;
    private String sex;

    public Teacher() {
    }

    public Teacher(String name, int age, String teachdate, String sex) {
        this.name = name;
        this.age = age;
        this.teachdate = teachdate;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getTeachdate() {
        return teachdate;
    }

    public void setTeachdate(String teachdate) {
        this.teachdate = teachdate;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void selfIntroduce() {
        System.out.println("老师在讲台上进行自我介绍");
    }

    public void giveLession() {
        System.out.println("老师正在传授课程");
    }

    public void print() {
        System.out.println("这个叫"+name+"的老师，年龄是"+age+"岁，性别是"+sex);
    }

}
